MailPoet\Segments\SegmentsRepository S

Total Complexity 29
Dependencies 15
Dependents 30
Total lines 254
Lines of code 189
Logical lines of code 87
Comment lines 17
Methods 15
Properties 3

Methods 15

Method Rating Maintainability Complexity Lines of code
createOrUpdate()
A
44 9 46
bulkDelete()
S
49 2 34
updateDeletedAt()
S
60 2 14
getWooCommerceSegment()
S
61 2 13
getCountsPerType()
S
61 2 13
isNameUnique()
S
60 2 13
verifyNameIsUnique()
S
72 2 5
getSegmentCountWithMultipleFilters()
S
60 1 14
findByUpdatedScoreNotInLastDay()
S
63 1 12
__construct()
S
70 1 6
getEntityClassName()
S
82 1 3
getWPUsersSegment()
S
79 1 3
bulkTrash()
S
67 1 7
doTrash()
S
79 1 3
bulkRestore()
S
79 1 3